import axios from '../utils/request';

const login = function (data) {
    return axios.post('/api/login',data)
}
const register = function (data) {
    return axios.post('/api/register',data)
}
const getUserList = function(data) {
    return axios.get('/api/get/user',{params:data})
}
const editUser = function(data) {
    return axios.post('/api/edit/user',data)
}

export default {
    login,
    register,
    getUserList,
    editUser
}